<!--
 * @Author: windys
 * @Description: 
 * @Date: 2022-03-23 13:38:33
-->
<template>
  <div>
    <van-nav-bar left-text="返回" left-arrow @click-left="handleLeftClick" />
  </div>
</template>

<script>
import { defineComponent, onMounted } from "vue";
import { useRoute, useRouter } from "vue-router";
import { ApiGetGameDetail } from "../../../api/common";
export default defineComponent({
  setup() {
    const router = useRouter();
    const route = useRoute()
    const handleLeftClick = () => {
        router.push("/game")
    };
    onMounted(()=>{
        init()
    })

    const init = async()=>{
        const res = await ApiGetGameDetail({
            gameId:route.query.id
        })
    }
    return {
      handleLeftClick,
    };
  },
});
</script>
<style scoped lang='less'>
</style>